<template>
	<view class="architecture">
		<view class="header">
			<view class="search-image">
				<input class="search" placeholder="请输入关键字查询" />
				<image src="../../static/批量文件搜索.png"></image>
			</view>
			<view class="exhibition">
				<view class="content">
					鱼泡测试鱼泡测试鱼泡测试
					<view class="num" style="color: #ff0000;">123113</view>
				</view>
				<view class="nationwide">全国
					<image src="../../static/下箭头.png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="enterprise">
			<view v-for="item in items" :key="item.id">
				<view class="enterprise-mesg" @click="goArchitectureDetails">
					<view class="title">
						测试
					</view>
					<view class="resource">
						<view class="successful">
							中标：
							<view style="display: inline;color: #007AFF;">
								0
							</view>
						</view>
						<view class="successful">
							建筑师：
							<view style="display: inline;color: #007AFF;">
								0
							</view>
						</view>
						<view class="successful">
							资质：
							<view style="display: inline;color: #007AFF;">
								1
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: [1, 2, 3, 4,1, 2, 3, 4,1, 2, 3, 4]
			}
		},
		methods:{
			goArchitectureDetails(){
				uni.navigateTo({
					url:"/pages/underconstruction/architecturedetails/architectureDetails"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.architecture {
		.header {
			width: 100vw;
			position: fixed;
			background: #007AFF;

			.search-image {
				position: relative;
				display: flex;
				align-items: center;
				justify-content: center;
				padding-bottom: 10rpx;

				.search {
					width: 80vw;
					padding: 10rpx 20rpx;
					background: #FFFFFF;
					border-radius: 20rpx;
				}

				image {
					width: 40rpx;
					height: 40rpx;
					position: absolute;
					right: 80rpx;
				}
			}

			.exhibition {
				background: #dadada;
				display: flex;
				justify-content: space-between;
				padding: 20rpx;

				.content {
					display: flex;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}

				.nationwide {
					display: flex;
					align-items: center;
					image {
						width: 30rpx;
						height: 30rpx;
						margin-left: 10rpx;
					}
				}
			}
		}

		.enterprise {
			background: #FFFFFF;
			font-size: 28rpx;
			margin-bottom: 20rpx;
			padding-bottom: 10rpx;

			.enterprise-mesg {
				border-bottom: solid 1px #C0C0C0;
				padding: 20rpx;
				margin: 0 20rpx;

				.title {
					font-weight: bold;
					margin-bottom: 20rpx;
				}

				.resource {
					display: flex;
					justify-content: space-between;

					.successful {
						display: flex;
					}
				}
			}
		}
	}
</style>
